'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller, io } = app;
  router.get('/', controller.home.index);
  router.get('/list', controller.home.userList);
  router.get('/news', controller.news.list);
  // socket.io
  io.of('/').route('server', io.controller.default.ping);
};
